package com.example.dormitorymanagement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2021-05-31
 */
@ApiModel(value = "学生对象")
public class Student implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(name = "id",value = "数据库id，自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(name = "studentId",value = "学生的学号")
    private String studentId;

    @ApiModelProperty(name = "studentName",value = "学生的姓名")
    private String studentName;

    @ApiModelProperty(name = "studentAge",value = "学生的年龄")
    private Integer studentAge;

    @ApiModelProperty(name = "studentSex",value = "学生的性别")
    private String studentSex;

    @ApiModelProperty(name = "studentPhone",value = "学生的电话")
    private String studentPhone;

    @ApiModelProperty(name = "studentDormitory",value = "学生的宿舍号，例如：9栋116")
    private String studentDormitory;

    @ApiModelProperty(name = "studentClass",value = "学生的班级,例如：19软件技术1班")
    private String studentClass;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public String getStudentId() {
        return studentId;
    }

      public void setStudentId(String studentId) {
          this.studentId = studentId;
      }
    
    public String getStudentName() {
        return studentName;
    }

      public void setStudentName(String studentName) {
          this.studentName = studentName;
      }
    
    public Integer getStudentAge() {
        return studentAge;
    }

      public void setStudentAge(Integer studentAge) {
          this.studentAge = studentAge;
      }
    
    public String getStudentSex() {
        return studentSex;
    }

      public void setStudentSex(String studentSex) {
          this.studentSex = studentSex;
      }
    
    public String getStudentPhone() {
        return studentPhone;
    }

      public void setStudentPhone(String studentPhone) {
          this.studentPhone = studentPhone;
      }
    
    public String getStudentDormitory() {
        return studentDormitory;
    }

      public void setStudentDormitory(String studentDormitory) {
          this.studentDormitory = studentDormitory;
      }
    
    public String getStudentClass() {
        return studentClass;
    }

      public void setStudentClass(String studentClass) {
          this.studentClass = studentClass;
      }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", studentId='" + studentId + '\'' +
                ", studentName='" + studentName + '\'' +
                ", studentAge=" + studentAge +
                ", studentSex='" + studentSex + '\'' +
                ", studentPhone='" + studentPhone + '\'' +
                ", studentDormitory='" + studentDormitory + '\'' +
                ", studentClass='" + studentClass + '\'' +
                '}';
    }
}
